package cn.edu.zafu.bigdata.lb;


abstract class Shape {
    public abstract double area();
    public abstract double perimeter();
    public final void display() {
        System.out.println("Shape Type: " + this.getClass().getSimpleName());
        System.out.println("Area: " + area());
        System.out.println("Perimeter: " + perimeter());
    }
}








